package org.lb.MarketingSystem.serviceImpl;

import java.util.List;

import org.lb.MarketingSystem.dao.PositionMapperDao;
import org.lb.MarketingSystem.entity.Position;
import org.lb.MarketingSystem.service.PositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component(value="positionServiceImpl")
public class PositionServiceImpl implements PositionService{
	@Autowired
	PositionMapperDao positionMapperDao;
	public boolean addPosition(Position position) {
		return false;
	}

	public boolean updatePosition(Position position) {
		return false;
	}

	public boolean deletePosition(String positionId) {
		return false;		
	}

	public List<Position> get_allPosition() {	
		return positionMapperDao.select_allPosition();
	}

	public List<Integer> getUsersIdByPositionName(String positionName) {
		return null;
	}
	
	public String getPositionNameByPoId(Integer positionId){
		return positionMapperDao.selectPositionNameByPoId(positionId);	
	}

	public Integer getPositionIdByPositionName(String PositionName) {
		return positionMapperDao.selectPositionIdByPositionName(PositionName);
	}

}
